package org.dromara.legal.domain.bo;

import org.dromara.legal.domain.Revert;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import org.hibernate.validator.constraints.Length;

/**
 * 回复业务对象 le_revert
 *
 * @author zhuqingrun
 * @date 2024-10-15
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = Revert.class, reverseConvertGenerate = false)
public class RevertBo extends BaseEntity {

    /**
     * 回复id
     */
    @NotNull(message = "回复id不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 咨询id
     */
    @NotNull(message = "咨询id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long consultId;

    /**
     * 内容
     */
    @NotBlank(message = "内容不能为空", groups = { AddGroup.class, EditGroup.class })
    @Length(max = 1000, message = "内容长度不能超过1000", groups = { AddGroup.class, EditGroup.class })
    private String reContent;

    /**
     * 状态（0未审核， 1已审核，2审核不通过）
     */
    private String status;

    /**
     * 审核不通过原因
     */
    private String reason;

    /**
     * 图片
     */
    private String reImg;

    /**
     * 相关文件
     */
    private String file;


}
